import React from 'react'

//配置路由
import { HashRouter, Route, Switch, Redirect } from 'react-router-dom';

import Layout from './views/Layout/Layout.jsx';
import Login from './views/reglog/Login.jsx';
import Register from './views/reglog/Register.jsx';
import City from './views/city/City.jsx';
import CinemaInfo from './views/details/CinemaInfo.jsx'
import FilmInfo from './views/details/FilmInfo.jsx'
import Seats from './views/details/Seats.jsx'



export default function App() {
    return (
        <div className="app" style={{ width: "100%", height: "100%" }}>
            <HashRouter>
                <Switch>
                    <Redirect exact path="/" to="/layout" />
                    <Route path="/layout" component={Layout} />
                    <Route path="/login" component={Login} />
                    <Route path="/register" component={Register} />
                    <Route path="/city" component={City} />
                    <Route path="/cinemaInfo" component={CinemaInfo} />
                    <Route path="/filmInfo" component={FilmInfo} />
                    <Route path="/seats" component={Seats} />
                </Switch>
            </HashRouter>
        </div >
    )
}
